package com.puntodonna.fogliocassa.client.action;

import com.gwtplatform.dispatch.shared.UnsecuredActionImpl;
import com.puntodonna.fogliocassa.client.action.LoginActionResult;
import java.lang.String;

public class LoginAction extends UnsecuredActionImpl<LoginActionResult> {

	private String user;
	private String password;
	private boolean addRequest = false;

	@SuppressWarnings("unused")
	private LoginAction() {
		// For serialization only
	}

	public LoginAction(String user, String password) {
		this.user = user;
		this.password = password;
	}
	
	public LoginAction(String user, String password, boolean addRequest) {
		this.user = user;
		this.password = password;
		this.addRequest = addRequest;
	}

	public String getUser() {
		return user;
	}

	public String getPassword() {
		return password;
	}
	
	public boolean isAddRequest(){
		return addRequest;
	}
}
